public class WuJing extends Handler{

    @Override

    public void handleRequest(String request) {
        if (request.equals("背行李")) {
            System.out.println("沙僧：我来负责背行李任务。");
        } else {
            if (successor != null) {
                successor.handleRequest(request);
            } else {
                System.out.println("无法处理这个请求。");
            }
        }
    }
}
